package com.lw.dao;

import com.lw.pojo.User;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

/**
 * @author LW
 * @2020/10/3 14:41
 */
public class UserDaoImpl1 extends SqlSessionDaoSupport implements UserDao {
    public List<User> queryAll() {
//        getSqlSession()就可以得到 一个Template
        return getSqlSession().getMapper(UserDao.class).queryAll();
    }
}
